Skip to content

TaskObservableMethodBuilder struct

Defined in

Namespace: System.Runtime.CompilerServices Assembly: System.Reactive.dll Full name: System.Runtime.CompilerServices.TaskObservableMethodBuilder<T> Modifiers: public sealed

Summary

Represents a builder for asynchronous methods that return a task-like ITaskObservable.

Applies to

netstandard2.0

Properties

NameSummary
TaskGets the observable sequence for this builder.

Methods

NameSummary
static CreateCreates an instance of the [TaskObservableMethodBuilder](# struct.
StartBegins running the builder with the associated state machine.
SetStateMachineAssociates the builder with the specified state machine.
SetResultMarks the observable as successfully completed.
SetExceptionMarks the observable as failed and binds the specified exception to the observable sequence.
AwaitOnCompletedSchedules the state machine to proceed to the next action when the specified awaiter completes.
AwaitUnsafeOnCompletedSchedules the state machine to proceed to the next action when the specified awaiter completes.